/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sample.excel;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*;

/**
 *
 * @author nicolas
 */
public class Document {

    public Document(String url) {
        try {
            Workbook wb = new HSSFWorkbook(new FileInputStream(url));
            wb.getSheetAt(0);

        } catch (IOException ex) {
            Logger.getLogger(Document.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
